import App from './App.vue'
import { playMusic } from './api/api'

// #ifndef VUE3
import Vue from 'vue'
// main.js
// 引入全局 uView 框架
import uView from 'uview-ui';
import md5 from 'md5'
uni.$md5 = md5
Vue.use(uView);
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
Vue.prototype.bgMusic = playMusic('/static/summer1.mp3', playing=>{}, true, true);